package com.xingkeduo.gateway.authority.pojo;

/**
 * 钥匙对对象类
 * 
 * @author GJ
 * @time 2019年3月27日 下午9:45:00
 * @description
 */
public class Token {
	private String uid;//主键
	private String privateKey;// 私钥
	private String publicKey;// 公钥
	private String refreshToken;// encrypt
	private String accessToken;// sign
	private long keyTime;//密钥对生成时间
	private long refreshTime;// refreshtoken生成时间
	private long accessTime;// accesstoken生成时间

	public String getUid() {
		return uid;
	}

	public Token setUid(String uid) {
		this.uid = uid;
		return this;
	}

	public String getPrivateKey() {
		return privateKey;
	}

	public Token setPrivateKey(String privateKey) {
		this.privateKey = privateKey;
		return this;
	}

	public String getPublicKey() {
		return publicKey;
	}

	public Token setPublicKey(String publicKey) {
		this.publicKey = publicKey;
		return this;
	}

	public String getRefreshToken() {
		return refreshToken;
	}

	public Token setRefreshToken(String refreshToken) {
		this.refreshToken = refreshToken;
		return this;
	}

	public String getAccessToken() {
		return accessToken;
	}

	public Token setAccessToken(String accessToken) {
		this.accessToken = accessToken;
		return this;
	}

	public long getKeyTime() {
		return keyTime;
	}

	public Token setKeyTime(long keyTime) {
		this.keyTime = keyTime;
		return this;
	}

	public long getRefreshTime() {
		return refreshTime;
	}

	public Token setRefreshTime(long refreshTime) {
		this.refreshTime = refreshTime;
		return this;
	}

	public long getAccessTime() {
		return accessTime;
	}

	public Token setAccessTime(long accessTime) {
		this.accessTime = accessTime;
		return this;
	}
}
